<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!-- 注意这种方式引入Struts2标签 -->

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>我的Struts2Demo测试</title>

</head>

<body>

	<form action="<%=basePath%>convertDemo!add.action" method="post">

		<input type="checkbox" name="gid" id="gid" value="10">研发组<br />
		<input type="checkbox" name="gid" id="gid" value="20">公关组<br />
		<input type="checkbox" name="gid" id="gid" value="30">行政组<br />
		<input type="submit" value="发送" />
	</form>
	<br /> 
	
	<form action="<%=basePath%>convertObjListDemo!add.action" method="post">

		编号:<input type="text" name="emps[0].empno" id="emps[0].empno" value="1001"><br />
		姓名:<input type="text" name="emps[0].ename" id="emps[0].ename" value="jzw"><br />
		雇佣日期:<input type="text" name="emps[0].hiredate" id="emps[0].hiredate" value="2019-03-11"><br />
		工资:<input type="text" name="emps[0].sal" id="emps[0].sal" value="830"><br /><br/>
		<hr>
		编号:<input type="text" name="emps[1].empno" id="emps[1].empno" value="1002"><br />
		姓名:<input type="text" name="emps[1].ename" id="emps[1].ename" value="jzw2"><br />
		雇佣日期:<input type="text" name="emps[1].hiredate" id="emps[1].hiredate" value="2019-03-12"><br />
		工资:<input type="text" name="emps[1].sal" id="emps[1].sal" value="832"><br />
		<hr>
		编号:<input type="text" name="emps[2].empno" id="emps[2].empno" value="1003"><br />
		姓名:<input type="text" name="emps[2].ename" id="emps[2].ename" value="jzw3"><br />
		雇佣日期:<input type="text" name="emps[2].hiredate" id="emps[2].hiredate" value="2019-03-13"><br />
		工资:<input type="text" name="emps[2].sal" id="emps[2].sal" value="8340"><br />
		<input type="submit" value="发送" />
	</form>
	
	<form action="<%=basePath %>myconvert!add.action" method="post">
		请选择语言:
		<select id="loc" name="loc">
			<option value="zh_CN">中文</option>
			<option value="en_US">英文</option>
		</select>
	<input type="submit" value="提交">
	</form>
	
	
</body>
</html>
